package com.az.miaoauth.controller;

import com.az.miaoauth.domain.dto.UserCodeDto;
import com.az.miaoauth.service.RegisterService;
import com.az.servicecommon.domain.Vo;
import com.az.servicecommon.util.BaseResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@BaseResponse
@RequestMapping("/auth/register")
@RequiredArgsConstructor
public class RegisterController {
    private final RegisterService registerService;

    @PostMapping("/student")
    public Vo registerStudent(UserCodeDto userCodeDto) {

        return registerService.registerStudent(userCodeDto);
    }
}
